﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace Unis.FMS.Platform.Order.Domain {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "doc_dpt_trip_stop_terminal_approve", DisableSyncStructure = true)]
	public partial class DocDptTripStopTerminalApprove {

		/// <summary>
		/// 主键id
		/// </summary>
		[JsonProperty, Column(Name = "id", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// 实际创建时间
		/// </summary>
		[JsonProperty, Column(Name = "actual_create_time", DbType = "datetime")]
		public DateTime ActualCreateTime { get; set; }

		/// <summary>
		/// 实际修改时间
		/// </summary>
		[JsonProperty, Column(Name = "actual_update_time", DbType = "datetime")]
		public DateTime ActualUpdateTime { get; set; }

		/// <summary>
		/// 审批时间
		/// </summary>
		[JsonProperty, Column(Name = "approve_time", DbType = "datetime")]
		public DateTime ApproveTime { get; set; }

		/// <summary>
		/// 审批用户
		/// </summary>
		[JsonProperty, Column(Name = "approve_user", DbType = "int")]
		public int ApproveUser { get; set; }

		/// <summary>
		/// 审批用户名称
		/// </summary>
		[JsonProperty, Column(Name = "approve_user_name", StringLength = 100, IsNullable = false)]
		public string ApproveUserName { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		[JsonProperty, Column(Name = "create_user", StringLength = 100, IsNullable = false)]
		public string CreateUser { get; set; }

		/// <summary>
		/// 创建人ID
		/// </summary>
		[JsonProperty, Column(Name = "created_by", DbType = "bigint")]
		public long CreatedBy { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "created_time", DbType = "datetime")]
		public DateTime CreatedTime { get; set; }

		/// <summary>
		/// 是否完成审批 0 未完成 1已完成
		/// </summary>
		[JsonProperty, Column(Name = "is_complete", DbType = "int")]
		public int IsComplete { get; set; } = 0;

		/// <summary>
		/// 是否删除：0未删除 1已删除
		/// </summary>
		[JsonProperty, Column(Name = "is_del", DbType = "int")]
		public int IsDel { get; set; } = 0;

		/// <summary>
		/// 坐标精度
		/// </summary>
		[JsonProperty, Column(Name = "lat", StringLength = 100, IsNullable = false)]
		public string Lat { get; set; }

		/// <summary>
		/// 坐标纬度
		/// </summary>
		[JsonProperty, Column(Name = "lng", StringLength = 100, IsNullable = false)]
		public string Lng { get; set; }

		/// <summary>
		/// 审批安全码(6位安全码_stopid)
		/// </summary>
		[JsonProperty, Column(Name = "security_code", StringLength = 100, IsNullable = false)]
		public string SecurityCode { get; set; }

		/// <summary>
		/// stop no
		/// </summary>
		[JsonProperty, Column(Name = "stop_no", DbType = "bigint")]
		public long StopNo { get; set; } = 0;

		/// <summary>
		/// 仓库三字码
		/// </summary>
		[JsonProperty, Column(Name = "terminal_code", StringLength = 50, IsNullable = false)]
		public string TerminalCode { get; set; }

		/// <summary>
		/// trip no
		/// </summary>
		[JsonProperty, Column(Name = "trip_no", DbType = "bigint")]
		public long TripNo { get; set; } = 0;

		/// <summary>
		/// 修改人ID
		/// </summary>
		[JsonProperty, Column(Name = "update_by", DbType = "bigint")]
		public long UpdateBy { get; set; }

		/// <summary>
		/// 修改时间
		/// </summary>
		[JsonProperty, Column(Name = "update_time", DbType = "datetime")]
		public DateTime UpdateTime { get; set; }

		/// <summary>
		/// 修改人
		/// </summary>
		[JsonProperty, Column(Name = "update_user", StringLength = 100, IsNullable = false)]
		public string UpdateUser { get; set; }

	}

}
